import java.io*;

public class CharUtil2{
	public static void dump(Reader src,Writer dest)throws IOExpection{
		try(Reader input = src;Writer output = dest){
			char[] data = new char[1024];
			int length;
			while ((length = input.read(data))!=-1){
				output.write(data,0,length);
			}
		}
	}

	public static void dump(InputStream src,OutputStream dest,
			String charest)throws IOExpection{
		dump{
			new InputStreamReader(src,charest),
			new OutputStreamWriter(dest,charest)
			);
		}

	public static void dump(InputStream src,OutputStream dest)
		throws IOExpection{
		dump(src,dest,Syustem.getProperty("file.encoding"));
	}

}




